package org.boot.easyapi.exception;

import lombok.Getter;

@Getter
public class BusinessException extends RuntimeException{

    private final Integer code;

    public BusinessException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public static BusinessException exception(String message) {
        return new BusinessException(1007986, message);
    }
}
